home *** CD-ROM | disk | FTP | other *** search
/ Languguage OS 2 / Languguage OS II Version 10-94 (Knowledge Media)(1994).ISO / language / embedded / simulato / v2_3_mc6.tz / v2_3_mc6 / testfiles / sum10.txt < prev    next >
Text File  |  1994-05-02  |  2KB  |  36 lines

  1. ;
  2. ; Test file for mkload and sim68.  Sum 10 integers and place the result
  3. ; into d1. Then dump the registers and text.
  4. ;
  5.  
  6. 000000 1001 000 001000 000                   ; Zero out d0
  7. 000002 0011 000 001000 000                   ; Move d0 into a0
  8. 000004 0011 010 000101 000 0000000000101000  ; Move into d2 # of ints to add
  9. 000008 0011 011 000101 000 0000000000101010  ; Move inc/dec crt into d3
  10. 00000C 0011 001 000101 000 0000000000101100  ; LOOP: Move next int into d3
  11. 000010 1101 000 001000 001                   ; Add int to the current sum
  12. 000012 1101 000 011000 011                   ; Increment a0
  13. 000014 1101 000 011000 011                   ; Increment a0
  14. 000016 1001 010 001000 011                   ; Decrement number counter
  15. 000018 0110 1110 11110010                    ; BGT LOOP
  16. 00001A 0011 001 000000 000                   ; Move result into d1
  17. 00001C 1001 000 001000 000                   ; Zero out d0
  18. 00001E 1101 000 001000 011                   ; Increment d0
  19. 000020 1101 000 001000 011                   ; Increment d0
  20. 000022 010011100100 0000                     ; Trap #2 (dump registers)
  21. 000024 1101 000 001000 011                   ; Increment d0
  22. 000026 010011100100 0000                     ; Trap #3 (exit)
  23.  
  24. 000028 0000 0000 0000 1010                   ; Number of integers
  25. 00002A 0000 0000 0000 0001                   ; Increment amount
  26. 00002C 0000 0000 0000 1010                   ; Integer #1
  27. 00002E 0000 0000 0000 1001                   ; Integer #2
  28. 000030 0000 0000 0000 1000                   ; Integer #3
  29. 000032 0000 0000 0000 0111                   ; Integer #4
  30. 000034 0000 0000 0000 0110                   ; Integer #5
  31. 000036 0000 0000 0000 0101                   ; Integer #6
  32. 000038 0000 0000 0000 0100                   ; Integer #7
  33. 00003A 0000 0000 0000 0011                   ; Integer #8
  34. 00003C 0000 0000 0000 0010                   ; Integer #9
  35. 00003E 0000 0000 0000 0001                   ; Integer #10
  36.